﻿using System;
using System.Web.UI;

namespace MyLib.Web.UI {
	/// <summary>
	/// 
	/// </summary>
	[ToolboxData("<{0}:MyPersonalIDValidator runat=\"server\"></{0}:MyPersonalIDValidator>")]
	public sealed class MyPersonalIDValidator : MyFormatBaseValidator {
		/// <summary>
		/// 
		/// </summary>
		/// <returns></returns>
		protected override string GetExpression() {
			return @"(\d{15})|(\d{17}([0-9]|X|x))";
		}
	} // end of MyEmailValidator.
}
